﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.SimpleFlow
{
    public class ApprovalMail : Entity
    {
        /// <summary>
        /// 邮件的审批记录节点的待办记录
        /// </summary>
        public virtual ApprovalToDo ThisToDo { get; set; }

        /// <summary>
        /// 邮件接收用户的ID
        /// </summary>
        public virtual string UserID { get; set; }

        /// <summary>
        /// 邮件是否发出：-1、发送失败；0、未发出；1、正在执行中；99、完成发送
        /// </summary>
        public virtual int IsSend { get; set; }

        /// <summary>
        /// 邮件计划发出时间
        /// </summary>
        public virtual DateTime PlanDate { get; set; }

        /// <summary>
        /// 邮件发出时间
        /// </summary>
        public virtual DateTime SendedDate { get; set; }

        /// <summary>
        /// 邮件接收人，以逗号分割开
        /// </summary>
        public virtual string MailTo { get; set; }

        /// <summary>
        /// 邮件抄送接收人，以逗号分割开
        /// </summary>
        public virtual string MailCC { get; set; }

        /// <summary>
        /// 邮件标题
        /// </summary>
        public virtual string Title { get; set; }

        /// <summary>
        /// 邮件正文
        /// </summary>
        public virtual string Content { get; set; }
    }
}
